package com.hziee.cosmanage.member.service.impl;

import org.springframework.stereotype.Service;
import java.util.Map;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.hziee.common.utils.PageUtils;
import com.hziee.common.utils.Query;

import com.hziee.cosmanage.member.dao.EvaluataeDao;
import com.hziee.cosmanage.member.entity.EvaluataeEntity;
import com.hziee.cosmanage.member.service.EvaluataeService;


@Service("evaluataeService")
public class EvaluataeServiceImpl extends ServiceImpl<EvaluataeDao, EvaluataeEntity> implements EvaluataeService {

    @Override
    public PageUtils queryPage(Map<String, Object> params) {
        IPage<EvaluataeEntity> page = this.page(
                new Query<EvaluataeEntity>().getPage(params),
                new QueryWrapper<EvaluataeEntity>()
        );

        return new PageUtils(page);
    }

    @Override
    public void personEvaluate(EvaluataeEntity evaluataeEntity) {
        this.save(evaluataeEntity);
    }

}